package fiuba.algo3.algoThieft.vista;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.Window;

public class CentralizadorDeVentana {
	
	public void centrarVentana(Window frame){
		Toolkit tk = frame.getToolkit();	
		Dimension d = tk.getScreenSize(); // dimensiones de la pantalla

		// mover al centro de la pantalla
		frame.setLocation((d.width - frame.getSize().width) / 2,
		(d.height - frame.getSize().height) / 2);
	}

}
